

package com.redis.base.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component("redisParamConfig")
@ConfigurationProperties(prefix = "spring.redis",ignoreUnknownFields = true)
public class RedisParamConfig {
	private boolean enable = true;
	private boolean spin;
	private Integer spinNum = 5;
	private Integer lockExpire = 20000;
	private Long expire = 3153600000000l;
	private Integer spinThreadTime =10;
	public boolean isEnable() {
		return enable;
	}
	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	public boolean isSpin() {
		return spin;
	}
	public void setSpin(boolean spin) {
		this.spin = spin;
	}
	public Integer getSpinNum() {
		return spinNum;
	}
	public void setSpinNum(Integer spinNum) {
		this.spinNum = spinNum;
	}
	public Integer getLockExpire() {
		return lockExpire;
	}
	public void setLockExpire(Integer lockExpire) {
		this.lockExpire = lockExpire;
	}
	public Long getExpire() {
		return expire;
	}
	public void setExpire(Long expire) {
		this.expire = expire;
	}
	public Integer getSpinThreadTime() {
		return spinThreadTime;
	}
	public void setSpinThreadTime(Integer spinThreadTime) {
		this.spinThreadTime = spinThreadTime;
	}
	
}
